import {Base} from "../../utils/base.js";
class My extends Base{
   constructor(){
      super();
   }
   //得到用户的信息
   getUserInfo(callback){
      wx.login({
         success:function(){
            wx.getUserInfo({
               success: function (res) {
                  callback && callback(res.userInfo);
               },
               fail: function (res) {
                  callback &&  callback({
                     avatarUrl: "../../imgs/icon/user@default.png",
                     nickName:'爱情饼干'
                  });
               },
            });
         }
      })
      
   }
   
}
export {My};